﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CommonEntity.ShellEntity
{
    public class ShellInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        /// <summary>
        /// 颜色
        /// </summary>
        [Required]
        [Column(TypeName = "VARCHAR(50)")]
        public string ShellColor { get; set; }

        /// <summary>
        /// 最新生产时间
        /// </summary>
        [Required]
        public DateTime LastProduceTime { get; set; }

        /// <summary>
        /// 总数量
        /// </summary>
        [Required]
        public int TotalCount { get; set; }
    }
}
